<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title><?php echo $page_title ?></title>
        <?php
            echo link_tag('assets/bootstrap/css/bootstrap.css');
            echo link_tag('assets/css/flat-ui.css');
            echo link_tag('assets/css/style.css');
           // echo link_tag('assets/images/favicon.ico');
        ?>
        <script type="text/javascript" src="<?php echo base_url(); ?>assets/js/prmajax.js"></script>
    </head>
    <body>
        <header>
            <div class="header-top">
            <div class="container">
                <div class="row">
                    <div class="span12">
                        <div class="account pull-right">
                            <?php if (!$isLogin) { 
                            ?>
                                <?php echo anchor(site_url('flogin'),'Login atau Register');?> |
                            <?php } ?>
                            <?php if ($isLogin) {
                            ?>
                                <a href="#"><?php echo 'Welcome, ' . $user;?></a>
                                <?php echo 'level: '.$this->session->userdata('level');?>
                                <?php echo anchor(site_url('flogin/logout'), 'Logout');?>
                            <?php } ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <?php

        ?>
        <div class="navigation">
            <div class="container">
              <div class="row">
                <div class="span12">
                  <div class="navbar navbar-inverse">
                    <div class="navbar-inner">
                        <div id="nav-collapse-01" class="nav-collapse colalpse">
                          <ul class="nav">
                            <li class="<?php if($this->session->userdata('page') == 1) echo 'active';?>"><?php echo anchor(base_url(),'Home');?></li>
                            <!-- <li class="<?php if($this->session->userdata('page') == 2) echo 'active';?>">
                              <?php echo anchor(site_url('listing'),'Daftar Listing');?>
                            </li>
                            <li class="<?php if($this->session->userdata('page') == 3) echo 'active';?>"><?php echo anchor(site_url('agen'),'Daftar Agen');?></li>
                            <li class="<?php ?>"><?php echo anchor(site_url('artikel'),'Blog');?></li> -->
                          </ul>
                        </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
      </div>
        </header>


<script type="text/javascript">
        $(document).ready(function(){
     
    $('#input-form').validate(
    {
    rules: {
        name: {
        minlength: 2,
        required: true
        },
        nama_depan: {
        minlength: 2,
        required: true
        },
        nama_belakang: {
        minlength: 2,
        required: true
        },
        username: {
        minlength: 2,
        required: true
        },
        password: {
        minlength: 2,
        required: true
        },
        password_again: {
        minlength: 2,
        required: true,
        equalTo: "#password"
        },
        email: {
        required: true,
        email: true
        },
        tel:{
        number: true
        },
        subject: {
        minlength: 2,
        required: true
        },
        message: {
        minlength: 2,
        required: true
        },
        judul: {
        minlength: 2,
        required: true
        },
        luas_tanah: {
        minlength: 2,
        required: true
        },
        luas_bangunan: {
        minlength: 2,
        required: true
        },
        jml_kmr_tidur: {
        minlength: 2,
        required: true
        },
        jml_kmr_mandi: {
        minlength: 2,
        required: true
        },
        harga: {
        minlength: 2,
        number: true,
        required: true
        },
        tahun_didirikan: {
        length: 4,
        number: true,
        required: true
        },
        jalan: {
        minlength: 4,
        required: true
        },
        deskripsi: {
        minlength: 4,
        required: true
        }
    },
    highlight: function(element) {
    $(element).closest('.control-group').removeClass('success').addClass('error');
    },
    success: function(element) {
    element
    .text('OK!').addClass('valid')
    .closest('.control-group').removeClass('error').addClass('success');
    }
    });
    }); // end document.ready
</script>